
package com.dotflat.fin.repository;

import com.dotflat.fin.domain.FinPayAccount;
import com.dotflat.fin.domain.FinPlan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface FinPayAccountRepository extends JpaSpecificationExecutor<FinPayAccount>, JpaRepository<FinPayAccount, String> {

    List<FinPayAccount> findAllByAreaIdAndDeletedIsFalseAndAccountTypeAndEnabledIsTrue(String areaId, Integer accountType);

    List<FinPayAccount> findAllByAreaIdAndIdInAndDeletedIsFalse(String areaId, Set<String> ids);

}
